package algo;

public class StockageMessage implements java.lang.Comparable {

	public StockageMessage() {

		est = 0;
		nbRecv = 0;

	}

	public int getNumMsg() {
		return numMsg;
	}
	public void setNumMsg(int numMsg) {
		this.numMsg = numMsg;
	}
	public long getEst() {
		return est;
	}
	public void setEst(long est) {
		this.est = est;
	}
	public TypeStockageMessage getTypeMessage() {
		return typeMessage;
	}
	public void setTypeMessage(TypeStockageMessage typeMessage) {
		this.typeMessage = typeMessage;
	}
	public TypeDemandeEvenement getTypeEvenement() {
		return typeEvenement;
	}
	public void setTypeEvenement(TypeDemandeEvenement typeEvenement) {
		this.typeEvenement = typeEvenement;
	}
	public int getNbRecv() {
		return nbRecv;
	}
	public void setNbRecv(int nbRecv) {
		this.nbRecv = nbRecv;
	}
	int numMsg;
	private long est;
	TypeStockageMessage typeMessage;
	int nbRecv;

	public TypeDemandeMessage getTypeDemande() {
		return typeDemande;
	}
	public void setTypeDemande(TypeDemandeMessage typeDemande) {
		this.typeDemande = typeDemande;
	}
	TypeDemandeMessage typeDemande;
	TypeDemandeEvenement typeEvenement;

	public int compareTo(Object o) {
		 return (int) est;

	   }
	public String toString() {
		return "numMsg = " + numMsg + " est = " + est + "nbRecv = " + nbRecv + "typeMessage = " + typeMessage;
	}
}
